<!DOCTYPE HTML>
<html>
<head>
{include file="public/top"}
<title>角色管理</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 商户资料管理 <span class="c-gray en">&gt;</span> 商户资料列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">

	<div class="cl pd-5 bg-1 bk-gray"> <span class="l"> <a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> 
	<!-- <a class="btn btn-primary radius" href="javascript:;" onclick="admin_role_add('添加商户资料','{:url('merchant/add')}','800')"><i class="Hui-iconfont">&#xe600;</i> 添加商户资料</a> -->
	<a class="btn btn-primary radius" href="{:url('merchant/add')}" ><i class="Hui-iconfont">&#xe600;</i> 添加商户资料</a>
	<a >
<input type="text" class="input-text" style="width:80px" placeholder="输入销售人员姓名" id="" name=""><button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont"></i> 搜</button></a>
 <a >
	<input type="text" class="input-text" style="width:80px" placeholder="输入商户编号" id="" name=""><button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont"></i> 搜</button>
</a>
<a> 日期范围：
		<input type="text"  id="datemin" class="input-text Wdate" style="width:100px;">
		-
		<input type="text"  id="datemax" class="input-text Wdate" style="width:100px;">
		<input type="text" class="input-text" style="width:90px" placeholder="输入会员名称、电话、邮箱" id="" name="">
		<button type="submit" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i> 搜用户</button>
</a>
</span> <span class="r">共有数据：<strong>54</strong> 条</span> </div>
	<table class="table table-border table-bordered table-hover table-bg">
		<thead>
			<tr>
				<th scope="col" colspan="6">商户资料管理</th>
			</tr>
			<tr class="text-c">
				<th width="25"><input type="checkbox" value="" name=""></th>
				<th width="40">ID</th>
				<th >商户名称</th>
				<th >商户编号</th>
				<th>联系电话</th>
				<th >法人</th>
				<th >地址</th>
				<th >销售人员</th>
				<th>注册时间</th>
				<th>审核状态</th>
				<th>付款码</th>
				<!-- <th>操作</th> -->
				 
			</tr>
		</thead>
		<tbody>
		{volist name="Merchant" id="chant"}
			<tr class="text-c">
				<td><input type="checkbox" value="" name=""></td>
				<td>{$chant.id}</td>
				<td><a href="{:url('merchant/detials',array('id'=>$chant['id']))}">{$chant.name}</a></td>
				<td>{$chant.mchId}</td>
				<td>{$chant.mobile}</td>
				<td>{$chant.contacts}</td>
				<td>{$chant.address}</td>
				<td>{$chant.salesname}</td>
				<td>{$chant.register_time|date="Y-m-d H:m:s",###}</td>
				<td class="td-status">
				{if condition="$chant['status'] eq 1"}
				<span class="label radius">未审核</span>
				{else/}
				<span class="label radius">通过审核</span>
				{/if}
				</td>
				
				<td><img src="{$chant.thumb}" alt="" width="35"></td>
				<!-- <td><a href="">配置二维码</a></td> -->
			</tr>
			{/volist}
		</tbody>
	</table>
</div>
{include file="public/footer"}

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__STATIC__/admin/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript">
/*管理员-角色-添加*/
function admin_role_add(title,url,w,h){
	layer_show(title,url,w,h);
}
/*管理员-角色-编辑*/
function admin_edit(title,url,id,w,h){
	layer_show(title,url,w,h);
}
/*管理员-角色-删除*/
function admin_role_del(obj,id){
	layer.confirm('角色删除须谨慎，确认要删除吗？',function(index){
		$.ajax({
			type: 'POST',
			url: '',
			dataType: 'json',
			success: function(data){
				$(obj).parents("tr").remove();
				layer.msg('已删除!',{icon:1,time:1000});
			},
			error:function(data) {
				console.log(data.msg);
			},
		});		
	});
}
</script>
</body>
</html>